package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 能源类型对象 energy_type
 * 
 * @author qiancheng
 * @date 2025-03-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("energy_type")
public class EnergyType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 能源类型ID，自增主键 */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 工厂id */
    @Excel(name = "工厂id")
    @TableField(value = "company_id")
    private Long companyId;

    /** 能源名称 */
    @Excel(name = "能源名称")
    @TableField(value = "energy_name")
    private String energyName;

    /** 能源单位，如m³/t */
    @Excel(name = "能源单位，如m³/t")
    @TableField(value = "energy_unit")
    private String energyUnit;


}
